﻿<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<title>用户配置</title>
		<link rel="icon" type="image/x-ico" href="../img/nuvoton.ico" />
		<script type="text/javascript" src="js/nuvoton.js"></script>
		<script type="text/javascript" src="../jquery/js/jquery.min.js"></script>
		<script type="text/javascript" src="../jquery/js/jquery-ui-custom.min.js"></script>
		<script type="text/javascript" src="js/nuvoton.js"></script>

		<script language="javascript">
			function ValidateSpecialCharacter() {
				var code;
				if (document.all) {
					code = window.event.keyCode;
				} else {
					code = arguments.callee.caller.arguments[0].which;
				} 
				var character = String.fromCharCode(code);
				var pattern = /^[a-zA-Z\d\u4E00-\u9FA5]+$/i;
				if (!pattern.test(character)) {
					if (document.all) { 
						window.event.returnValue = false; 
					} else { 
						arguments.callee.caller.arguments[0].preventDefault(); 
					} 
				}
			}
			$(document).ready(function(){
				$.get("user_info_get.ncgi?doAction=read", function(data){
					$("#http_host").val(data.HOST);
					$("#user_name").val(data.USERID);
					$("#user_newpwd").val(data.PW);
				});
			});
		</script>
	<style>
	   html
		{
			/*background-color:slategray;*/
			width: 100%;
			height: 100%;
			color: yellow;
		}
		#page_title1
        {
            font-size: 150%;
            //background-color:red;
        }
	</style>
	</head>

	<body>
		<p id="page_title1"> 营业厅信息绑定 </p>
		<form class="userinfoform" action="user_info_config.ncgi" method="get">
			<p  style="width:100px;vertical-align:middle">
				主机名: <input type="text" name="http_host" id="http_host" />.a.diyeasy.com.cn
			</p>
			<p  style="width:100px;vertical-align:middle">
				营业厅编号: <input type="text" name="user_name" id="user_name" onkeypress="return ValidateSpecialCharacter();"/>
			</p>
			<p  style="width:100px;vertical-align:middle">
				营业厅密码: <input type="text"  name="user_newpwd" id="user_newpwd" onkeypress="return ValidateSpecialCharacter();"/>
			</p>
			<!--<span style="display:block; width:1000px; text-align:center"> -->
			<input type="submit" value="确定" />
		</form>
<br>
		<p>请注意，营业厅编号、密码、http主机地址必须和服务器相同</p>
<br>
	</body>

</html>